Component({
    properties: {
        point: {
            type: Number,
            value: 1
        },
        shaking: {
            type: Boolean,
            value: !1
        },
        model: {
            type: String,
            value: "normal"
        }
    },
    data: {
        X: 30,
        Y: 45,
        Z: 45,
        current: 1
    },
    observers: {
        shaking: function(a) {
            this.setData({
                current: a ? 0 : this.data.point
            });
        },
        point: function(a) {
            var t, e, s, r = Math.floor(360 * Math.random()), i = "pillars" == this.data.model ? 10 : 0, n = a;
            switch (a) {
              case 1:
                t = 225 + i, e = 0, s = r;
                break;

              case 2:
                t = -45 + i, e = r, s = -90;
                break;

              case 3:
                t = -45 + i, e = r, s = 0;
                break;

              case 4:
                t = 135 + i, e = r, s = 0;
                break;

              case 5:
                t = -45 + i, e = r, s = 90;
                break;

              case 6:
                t = 45 + i, e = 0, s = r;
            }
            this.data.shaking ? this.setData({
                X: t,
                Y: e,
                Z: s
            }) : this.setData({
                X: t,
                Y: e,
                Z: s,
                current: n
            });
        }
    }
});